package com.sg.business.permission.ui.column;

import org.eclipse.jface.viewers.TableViewer;

import com.sg.business.permission.model.PermissionAction;

public class ReGrantCheckColumn extends AbstractCheckColumn {


	@Override
	protected boolean isTrue(PermissionAction action) {
		return Boolean.TRUE.equals(action.getReGrantPermission());
	}

	@Override
	protected void setValue(TableViewer viewer, PermissionAction action,
			boolean value) {
		action.setReGrantPermission(value);
		super.setValue(viewer, action, value);
	}

}
